<legend class='hyc-legend'>
    <i class="fa fa-list"></i>&nbsp;
    <span>车系列表</span>
</legend>
<div class="panel panel-default">
    <div class="panel-heading">车系列表</div>
    <div class="panel-body">
        <div class="row">
            <div class="col-md-1 text-right top7">品牌名称</div>
            <div class="col-md-2">
                <div class="form-group">
                    <button type="button" class="btn btn-default admin-select select hyc-width" ng-change="loadVehicle()" ng-model="queryVehicle.brandId" bs-options="brand.id as brand.brandName for brand in brandList" bs-select placeholder="---请选择---">
                    </button>
                </div>
            </div>
            <div class="col-md-1 text-right top7">车系名称</div>
            <div class="col-md-2">
                <div class="form-group">
                    <button type="button" class="btn btn-default admin-select select hyc-width" ng-model="queryVehicle.vehicleId" bs-options="vehicle.id as vehicle.vehicleName for vehicle in vehicleList" bs-select placeholder="---请选择---">
                    </button>
                </div>
            </div>
            <div class="col-md-1 text-right top7">车系级别</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control" ng-model="queryVehicle.sysVehicleClass" bs-options="class.code as class.name for class in vehicleClass" bs-typeahead>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group text-right">
                    <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
                    <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>
                </div>
            </div>
        </div>
        <div class="hyc-overflow-y">
            <table class="table table-bordered table-hover">
                <tr>
                    <th class="text-center">选择</th>
                    <th class="text-center">品牌名称</th>
                    <th class="text-center">车系名称</th>
                    <th class="text-center">车系级别</th>
                    <th class="text-center">车型长(MM)</th>
                    <th class="text-center">车型宽(MM)</th>
                    <th class="text-center">车型高(MM)</th>
                    <th class="text-center">车型自重(KG)</th>
                </tr>
                <tr ng-repeat="vehicle in vehiclesList track by $index">
                    <td class="text-center">
                        <input type="checkbox" class="checkbox hyc-inner-block" ng-model="vehicle.active" value="{{vehicle.id}}"/>
                    </td>
                    <td class="text-center">
                        {{vehicle.brandName}}
                    </td>
                    <td class="text-center">
                        {{vehicle.vehicleName}}
                    </td>
                    <td class="text-center">
                        {{vehicle.sysVehicleClass}}
                    </td>
                    <td class="text-center">
                        {{vehicle.vehicleLengh}}
                    </td>
                    <td class="text-center">
                        {{vehicle.vehicleWidth}}
                    </td>
                    <td class="text-center">
                        {{vehicle.vehicleHeight}}
                    </td>
                    <td class="text-center">
                        {{vehicle.vehicleWeight}}
                    </td>
                </tr>
                <tr ng-if="vehiclesList.length <= 0">
                    <td colspan="14">
                        <div class="hyc-color text-center">
                            暂无车系数据
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div ng-include="pageIncludeUrl" ng-if="vehiclesList.length > 0"></div>
    </div>
    <div class="panel-footer text-right padding5">
        <div class="btn btn-warning btn-sm" ng-click="showModel('edit')">修改</div>
        <div class="btn btn-warning btn-sm" ng-click="showModel('add')">新增</div>
    </div>
</div>